Skip to content

refactor(cloud-run): delegate market-open helpers to QuantPlatformKit - #551

Closed
Pigbibi wants to merge 1 commit into
mainfrom
refactor/use-qpk-market-open-helpers
Closed

Pigbibi wants to merge 1 commit into
mainfrom
refactor/use-qpk-market-open-helpers

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

AI assistance

  • Authored with AI assistance and verified locally.

What changed

  • Updated quant-platform-kit pin in pyproject.toml, qsl.toml, and uv.lock to 00168a617d45205f6f685090a4197592995935b3.
  • Refactored src/firstrade_platform/entrypoints/cloud_run.py (is_market_open_now) to delegate to quant_platform_kit.markets, keeping mcal.get_calendar injectable for tests.

How verified

  • uv sync --frozen --extra test -> succeeded
  • uv run --no-sync ruff check --exclude external . -> All checks passed
  • check_qpk_pin_consistency.py -> All 3 dependency files reference 00168a617d45
  • pytest tests/test_cloud_run_entrypoint.py tests/test_qsl_metadata.py tests/test_market_hours_gate.py tests/test_request_handling.py tests/test_shared_import_contract.py -q -> 61 passed

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 22, 2026
@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:45:52.002653Z 0fb9f0d Manual request
🔒 Security Review ✅ Completed 2026-11-22T09:47:52.879725Z 0fb9f0d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pigbibi
Pigbibi enabled auto-merge (squash) November 22, 2026 09:44
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 0fb9f0d379

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 0fb9f0d379

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Closing: bumping quant-platform-kit from 5d071420 to 00168a61 pulls in unrelated structured notification formatting changes that break 12 flags-off golden tests in FirstradePlatform. Deferring adoption of quant_platform_kit.markets.is_market_open_now until FirstradePlatform's scheduled QPK/notification cohort upgrade (FirstradePlatform already carries the schedule-coverage guard locally).

@Pigbibi Pigbibi closed this Nov 22, 2026
auto-merge was automatically disabled November 22, 2026 09:56

Pull request was closed

@Pigbibi
Pigbibi deleted the refactor/use-qpk-market-open-helpers branch November 22, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant